package comday04.itheima02;

public class Demo02 {
    public static void main(String[] args) {

        int[] arr = {120,130,110,125,128,164};

        //求数组的元素和

        int sum = 0;

        for (int i = 0; i < arr.length; i++) {
            sum += arr[i];
        }

        System.out.println(sum);
    }
}
